package org.apache.dubbo.demo.consumer.comp;

import org.apache.dubbo.config.annotation.Reference;
import org.apache.dubbo.demo.MockService;
import org.springframework.stereotype.Service;

/**
 * @author duyutian
 * @version 1.0
 * @date 2020/8/19 19:15
 */
@Service("mockComponent")
public class MockComponent {

    @Reference(mock = "true")
    private MockService mockService;

    public void d1() {
        mockService.helloMock();
    }
}
